package manager_web.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class MvcConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/showBack_login").setViewName("back_login");
        registry.addViewController("/showBack_home").setViewName("back_Home");
        registry.addViewController("/showBack_userSet").setViewName("back_userSet");
        registry.addViewController("/showList").setViewName("list");
        registry.addViewController("/showUserSearchResult").setViewName("user_search_result");
        registry.addViewController("/showBack_courseSet").setViewName("back_courseSet");
        registry.addViewController("/showBack_courseReourceSet").setViewName("back_courseReourceSet");
        registry.addViewController("/showBack_resourceDetailSet").setViewName("back_resourceDetailSet");
        registry.addViewController("/showBack_resourceSet").setViewName("back_resourceSet");
        registry.addViewController("/showBack_resourceSearchResult").setViewName("back_resourceSearch_result");
        registry.addViewController("/showBack_courseTypeSet").setViewName("back_courseTypeSet");
        registry.addViewController("/showBack_commentSet").setViewName("back_commentSet");
        registry.addViewController("/showBack_commentManagerSet").setViewName("back_commentManagerSet");
        registry.addViewController("/showBack_courseTypeSet").setViewName("back_courseTypeSet");

    }
}
